home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 April
/
CHIP CD (4 - 2007).iso
/
beeld
/
3d
/
ArtOfIllusion24-Mac.dmg
/
Art of Illusion
/
ArtOfIllusion.jar
/
bsh
/
commands
/
mv.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
228b
|
14 lines
/**
Rename a file (like Unix mv).
*/
bsh.help.mv = "usage: mv( fromFile, toFile )";
mv( String fromFile, String toFile )
{
this.from = pathToFile( fromFile );
this.to = pathToFile( toFile );
from.renameTo( to );
}